import java.util.ArrayList;
import java.util.Collections;

public class Game {
    private ArrayList<Poker> pokers;

    public Game() {
        this.pokers = new ArrayList<>();
    }

    public void showAll() {
        for (Poker poker : pokers) {
            System.out.println(poker);
        }
    }

    public void sort() {
        Collections.sort(pokers, new PokerComparator());
    }

    public void addPoker(Poker poker) {
        pokers.add(poker);
    }
}    